<div class="row">
	<div class="col-xs-12">
		<div class="row well well-sm">
			<div class="col-xs-12 col-sm-9 col-sm-offset-1"><?php
			echo form_open(null,array(
				'class'=>'form-horizontal','role'=>'form'
			));
				?><div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Tên Người Dùng:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo form_input(array(
							'name'=>'ten-nguoi-dung','value'=>set_value('ten-nguoi-dung',$user->getUsername()),
							'class'=>'form-control','required'=>'required',
							'placeholder'=>'Tên Người Dùng'
						));
						echo form_error('ten-nguoi-dung');
					?></div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Mật Khẩu:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo form_password(array(
							'name'=>'mat-khau','value'=>set_value('mat-khau',$user->getPassword()),
							'class'=>'form-control','required'=>'required',
							'placeholder'=>'Mật Khẩu'
						));
						echo form_error('mat-khau');
					?></div>
				</div>
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Đặc Quyền:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo form_input(array(
							'name'=>'dac-quyen','value'=>set_value('dac-quyen',$user->getRole()),
							'class'=>'form-control','required'=>'required',
							'placeholder'=>'Đặc Quyền'
						));
						echo form_error('dac-quyen');
					?></div>
				</div>
				
				<div class="form-group">
					<label class="col-sm-3 col-md-3 col-lg-2 control-label">Trạng Thái:</label>
					<div class="col-sm-9 col-md-9 col-lg-10"><?php
						echo '<label class="label label-default">'.form_checkbox(array(
							'type'=>'radio','name'=>'active','style'=>'vertical-align:-3px',
							'value'=>'1','checked'=>set_checkbox('active','1',(bool)!$user->getStatus())
						)).' Kích hoạt</label> &nbsp;&nbsp';
						echo '<label class="label label-default">'.form_checkbox(array(
							'type'=>'radio','name'=>'active','style'=>'vertical-align:-3px',
							'value'=>'0','checked'=>set_checkbox('active','0',(bool)$user->getStatus())
						)).' Không Kích hoạt</label>';
						echo form_error('active');
					?></div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-5 col-md-offset-4 col-lg-offset-3 col-sm-7 col-md-8 col-lg-9"><?php
						echo form_submit(array(
							'name'=>'submit','value'=>'Thêm người dùng',
							'class'=>'btn btn-success'
						)).' '.form_reset(array(
							'name'=>'reset','value'=>'Nhập lại',
							'class'=>'btn btn-warning'
						));
					?></div>
				</div><?php
			echo form_close();
			?></div>
		</div>
	</div>
</div>
<script>
$('.bbcode').sceditor({
	toolbarExclude :'emoticon,cut,copy,paste,print',
	//toolbar:'bold,commandasd,source',
	emoticonsEnabled:false,
	plugins:"bbcode",
	style:"<?php echo base_url('/assets/css/default.min.css'); ?>"
});
</script>